<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%news_temp}}".
 *
 * @property string $id
 * @property string $title
 * @property string $content
 * @property string $images
 * @property string $create_time
 * @property string $url
 * @property string $article_id
 * @property string $page
 */
class NewsTemp extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%news_temp}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['content', 'images'], 'string'],
            [['create_time', 'article_id', 'page'], 'integer'],
            [['title'], 'string', 'max' => 200],
            [['url'], 'string', 'max' => 150],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => 'Title',
            'content' => 'Content',
            'images' => 'Images',
            'create_time' => 'Create Time',
            'url' => 'Url',
            'article_id' => 'Article ID',
            'page' => 'Page',
        ];
    }
}
